package com.xpxrule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.xpxrule.dataobject.dao.ModelItem;
import org.apache.ibatis.annotations.Update;

/**
 * @version 1.0
 * @Author xiangpengxiang
 * @Date 2024/11/20 19:12
 * @注释
 */
@Mapper
public interface ModelItemMapper extends BaseMapper<ModelItem> {
    @Update("update model_item set is_deleted = now() where model_key=#{modelKey} and is_deleted is null")
    void deleteModelItemByModelKey(@Param("modelKey") String modelKey);
}
